<script setup>
  import DynamicTable from '@/components/DynamicTable/index.vue';
  import { ref } from 'vue';
  
  const cols = ref([
    {
      prop: 'name',
      label: '姓名'
    },
    {
      prop: 'age',
      label: '年龄'
    },
    {
      prop: 'address',
      label: '住址'
    }
  ]);

  const data = ref([
    {
      name: '张三',
      age: 18,
      address: '武汉市'
    },
    {
      name: '李四',
      age: 20,
      address: '黄石市'
    }
  ])

  
</script>
<template>
  <div>
    <DynamicTable :dataList="data" :tableColumns="cols"/>
  </div>
</template>
<style scoped>

</style>